package com.cencus.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("tag")
public class Tag {
    @TableId(value = "tag_id",type = IdType.AUTO)
    private int tagId;
    private String name;
    public Tag(){}

    public Tag(int tagId, String name) {
        this.tagId = tagId;
        this.name = name;
    }
}